package com.tkjt.pms.modules.scoring.model;

import java.util.List;

import com.baomidou.mybatisplus.core.toolkit.StringUtils;

public class ScoreValueSaveRequestModel {
    /**
     * yearMonth : 201912
     * values : [{"indexCode":"IAAB017","indexValueCode":"KCIAAB017VA001","orgCode":"A01A01A01A01","scorerCode":"geming","scoreValue":"145.0"},{"indexCode":"IAAB017","indexValueCode":"KCIAAB017VA001","orgCode":"A01A01A01A03","scorerCode":"chenbiwei","scoreValue":"105.0"},{"indexCode":"IAAC005","indexValueCode":"KCIAAC005VB001","orgCode":"A01A01A01A01","scorerCode":"biwenjun","scoreValue":"135.0"}]
     */

    private String indexYearMonth;
    private List<ValuesBean> values;

    public String getIndexYearMonth() {
        return indexYearMonth;
    }
    
    public void setIndexYearMonth(String indexYearMonth) {
        this.indexYearMonth = indexYearMonth;
    }

    public List<ValuesBean> getValues() {
        return values;
    }

    public void setValues(List<ValuesBean> values) {
        this.values = values;
    }

    public static class ValuesBean {
        /**
         * indexCode : IAAB017
         * indexValueCode : KCIAAB017VA001
         * indexDepart : A01A01A01A01
         * scorerCode : geming
         * scoreValue : 145.0
         */
        private String id;
        private String indexCode;
        private String indexValueCode;
        private String indexDepart;
        private String scorerCode;
        private String scoreValue;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getIndexCode() {
            return indexCode;
        }

        public void setIndexCode(String indexCode) {
            this.indexCode = indexCode;
        }

        public String getIndexValueCode() {
            return indexValueCode;
        }

        public void setIndexValueCode(String indexValueCode) {
            this.indexValueCode = indexValueCode;
        }

        public String getIndexDepart() {
            return indexDepart;
        }

        public void setIndexDepart(String indexDepart) {
            this.indexDepart = indexDepart;
        }

        public String getScorerCode() {
            return scorerCode;
        }

        public void setScorerCode(String scorerCode) {
            this.scorerCode = scorerCode;
        }

        public Double getScoreValue() {
        	if(StringUtils.isEmpty(scoreValue)) {
        		return null;
        	}
            return Double.valueOf(scoreValue);
        }

        public void setScoreValue(String scoreValue) {
            this.scoreValue = scoreValue;
        }
    }
}
